Skip to main content

Toggle Business Status

PUT /api/v1/businesses/{businessId}/status/toggle

Description

Toggle the status of a business.

Path Parameters

NameTypeDescription
businessIdstringThe ID of the business (path)

Request Body

  • Content Type: application/json
{
"comment": "string",
"actionBy": "string"
}

Response Code: 200 - OK

Description

Status toggled successfully.

Headers

Content-TypeValue
apiKey{{apiKey}}

Body

{
"comment": "Review completed",
"actionBy": "admin123"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/businesses/{businessId}/status/toggle \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!